import request from '@/utils/request'

export function uploadFile(data) {
  return request({
    url: '/upload/uploadFile',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: data
  })
}

const uploadPath = process.env.VUE_APP_BASE_API + '/upload/uploadFile'
export { uploadPath }
